package localdatetime;

import java.time.LocalDateTime;

/**
 * Created by 5406160@qq.com on LiBoWen 李博闻.
 *
 * @ClassName : LocalDateTimeDemo
 * @Author : 54061
 * @Date: 2022/2/11 21:24
 */
public class LocalDateTimeDemo {
    public static void main(String[] args) {

        //现在时间
        LocalDateTime now = LocalDateTime.now();
        System.out.println("now = " + now.toString());
        //指定时间
        LocalDateTime tim = LocalDateTime.of(2008,8,8,20,8,8);
        System.out.println("tim = " + tim);
    }
}
